package com.genghis.rapidcrm.web.view.support;

import java.util.HashMap;
import java.util.Map;

public class ResponseData {

    private Boolean success;

    private Map<String, ?> result = new HashMap<>();

    public Boolean getSuccess() {
        return success;
    }

    public void setSuccess(Boolean success) {
        this.success = success;
    }

    public Map<String, ?> getResult() {
        return result;
    }

    public void setResult(Map<String, ?> result) {
        this.result = result;
    }

    public ResponseData() {
        this(true);
    }

    public ResponseData(Boolean success) {
        this.success = success;
    }

    public ResponseData(Boolean success, Map<String, ?> result) {
        this.success = success;
        this.result = result;
    }
}
